<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">借款信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">借款信息</td><td class="tv colorlan" id="jieid_name" colspan="3"></td></tr>
                <tr><td class="tt">借款人</td><td id="jie_jieer" class="tv"></td><td class="tt">联系电话</td><td id="jie_jie_tel" class="tv"></td></tr>
                <tr><td class="tt">出借人</td><td id="jie_chuer" class="tv"></td><td class="tt">借款金额(元)</td><td id="jie_money" class="tv"></td></tr>
                <tr><td class="tt">已放款金额(元)</td><td id="fangfee" class="tv"></td><td class="tt">待放款金额(元)</td><td id="daifee" class="tv"></td></tr>

                </tbody>
            </table>
        </div>
        <div class="table-box tablenes">
            <div class="title">放款信息</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">本次放款金额(元)</td><td id="money" class="tv"></td><td class="tt">放款到账日期</td><td id="daodt" class="tv"></td></tr>
                <tr><td class="tt">放款说明</td><td class="tv" id="shuo" colspan="3"></td></tr>
                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_hou_tiao_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var jieinfo = res.data.jieinfo;

                if(jieinfo){
                    $("#jieid_name").text(jieinfo.number).click(function () {
                        openPage('../hou_jie/show.php?id='+jieinfo.id);
                    });
                    $("#jie_money" ).text(parseFormatNum(jieinfo.money));
                    $("#fangfee" ).text(parseFormatNum(jieinfo.fangfee));
                    $("#daifee" ).text(parseFormatNum(jieinfo.daifee));
                    $("#jie_chuer" ).text(jieinfo.chuer);
                    $("#jie_jieer" ).text(jieinfo.jieer);
                    $("#jie_jie_tel" ).text(jieinfo.jie_tel);
                }


                $("#money").text(parseFormatNum(data.money));
                $("#daodt").text(data.daodt);
                $("#shuo").html(data.shuo);
                $("#explain").text(data.explain);

                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('hou_tiao', param_id);
    });



</script>
</body>
</html>




